﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace Runda.CMS.Order.Entity
{
    [Table(Name = "VouchSend")]
    public class Shipping
    {
        [Column(Name = "SendBillID", DbType = "uniqueidentifier NOT NULL", IsPrimaryKey = true, CanBeNull = false, IsDbGenerated = true)]
        public Guid SendBillID { get; set; }

        [Column(Name = "cVouchId", DbType = "VarChar(30) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String shippingRequestId { get; set; }

        [Column(Name = "cSendcompany", DbType = "VarChar(20) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String sendCompany { get; set; }

        [Column(Name = "cSendbillNo", DbType = "VarChar(30) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String sendBillNo { get; set; }

        [Column(Name = "cOrderId", DbType = "VarChar(30) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String orderId { get; set; }

        [Column(Name = "cCusCode", DbType = "VarChar(50) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String customerID { get; set; }

        [Column(Name = "cInvCode", DbType = "VarChar(30) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String inventoryCode { get; set; }

        [Column(Name = "quantity", DbType = "decimal(18,2) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public decimal quantity { get; set; }

        [Column(Name = "PreReceivedDate", DbType = "datetime(20)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public DateTime? preReceivedDate { get; set; }

        [Column(Name = "ReceivedDate", DbType = "datetime", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public DateTime? receivedDate { get; set; }

        [Column(Name = "ReceivedMan", DbType = "VarChar(10)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String receivedMan { get; set; }

        [Column(Name = "createdOn", DbType = "datetime", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public DateTime createdOn { get; set; }

        [Column(Name = "cretedBy", DbType = "uniqueidentifier", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public Guid createdBy { get; set; }

        [Column(Name = "updatedOn", DbType = "datetime", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public DateTime? updatedOn { get; set; }

        [Column(Name = "updatedBy", DbType = "uniqueidentifier", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public Guid? updatedBy { get; set; }
    }
}
